/*
 * @Author: Sam
 * @Date: 2020-10-12 15:23:33
 * @LastEditTime: 2020-11-09 11:53:42
 * @LastEditors: Sam
 * @Description: 
 * @FilePath: \thework\tofba-client\src\utils\get-page-title.js
 * @可以输入预定的版权声明、个性签名、空行等
 */
import defaultSettings from '@/settings'
import i18n from '@/lang'

const title = defaultSettings.title || '九方通逊'

export default function getPageTitle(pageTitle) {
  if (pageTitle) {
    return `${i18n.t(`route.${pageTitle}`)} - ${title}`
  }
  return `${title}`
}
